package xyz.yuanjilu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import xyz.yuanjilu.dao.AntWebSiteDao;
import xyz.yuanjilu.entity.AntWebSiteEntity;
import xyz.yuanjilu.entity.WebSiteEntity;
import xyz.yuanjilu.service.AntWebSiteService;



@Service("antWebSiteService")
public class AntWebSiteServiceImpl implements AntWebSiteService {
	@Autowired
	private AntWebSiteDao antWebSiteDao;
	
	
	@Override
    public WebSiteEntity getWebSiteEntity(String antBeanId) {
	    Map<String,Object> param=new HashMap<String,Object>();
	    param.put("antBeanId", antBeanId);
        return antWebSiteDao.getWebSiteEntity(param);
    }

    @Override
	public AntWebSiteEntity queryObject(Long id){
		return antWebSiteDao.queryObject(id);
	}
	
	@Override
	public List<AntWebSiteEntity> queryList(Map<String, Object> map){
		return antWebSiteDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return antWebSiteDao.queryTotal(map);
	}
	
	@Override
	public void save(AntWebSiteEntity antWebSite){
		antWebSiteDao.save(antWebSite);
	}
	
	@Override
	public void update(AntWebSiteEntity antWebSite){
		antWebSiteDao.update(antWebSite);
	}
	
	@Override
	public void delete(Long id){
		antWebSiteDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		antWebSiteDao.deleteBatch(ids);
	}

    @Override
    public void deleteBatchByAntBeanIds(String[] AntBeanIds) {
        antWebSiteDao.deleteBatchByAntBeanIds(AntBeanIds);
    }
	
}
